////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors.
// All Rights Reserved.
// The following is Sample Code and is subject to all restrictions on such code
// as contained in the End User License Agreement accompanying this product.
// If you have received this file from a source other than Adobe,
// then your use, modification, or distribution of it requires
// the prior written permission of Adobe.
//
////////////////////////////////////////////////////////////////////////////////
package samples.flexstore
{

/*
[Bindable]
public class Product
{

    public var productId:int;
    public var name:String;
    public var description:String;
    public var price:Number;
    public var image:String;
    public var series:String;
    public var triband:Boolean;
    public var camera:Boolean;
    public var video:Boolean;
    public var highlight1:String;
    public var highlight2:String;
    public var qty:int;
   public var basicDesc:BasicContentDescriptionType;
   public var progamInfo:ProgramInformationType;
    public var imagePath:String;
    

    public function Product()
    {

    }

    public function fill(obj:Object):void
    {
        for (var i:String in obj)
        {
            this[i] = obj[i];
        }
    }

    [Bindable(event="propertyChange")]
    public function get featureString():String
    {
    	var str:String = "";
    	if (triband)
    		str += "Tri-band ";

		if (camera)
			str += "Camera ";

		if (video)
			str += "Video";

		return str;
    }

}*/

	import mx.collections.ArrayCollection;
	import tva.metadata._2005.ProgramInformationType;
	import tva.metadata._2005.BasicContentDescriptionType;
	public class Product {
		
		private var _id:String;
		private var _title:String;
		private var _synopsis:String;
		private var _keyword:String;
		private var _tags:Array;
		private var _thumbnail:String;
		private var _preview:String;
		private var _price:String;
		private var _rating:Number;
		private var _thumbnailStream:Array;
		private var _relatedMaterial:Array;
		private var _trailers:Array;
		private var _creditItems:Array;
		private var _intentions:Array;
		private var _parentalGuidanceArray:Array;
		private var _releaseDate:String;
		private var _officialURI:String;
		private var _content:Array;
		private var _mediaType:Array;
		private var _atmosphere:Array;
		private var _format:Array;
		private var _intendedAudience:Array;
		private var _origination:Array;
		private var _subTitle:String;
		public var duration:String;
		public var genreArray:Array;
	    public var productId:int;
//	    public var name:String;
//	    public var description:String;
//	    public var price:Number;
	    public var image:String;
	    public var series:String;
	    public var triband:Boolean;
	    public var camera:Boolean;
	    public var video:Boolean;
	    public var highlight1:String;
	    public var thumbnailName:String;
//	    public var highlight2:String;
	    public var qty:int;
		public var basicDesc:BasicContentDescriptionType;
		public var progamInfo:ProgramInformationType;
	    private var _language:String;
	    private var _promoInfo:String;
	    private var _copyRight:String;
	    private var _author:String;
	    public var imagePath:String;
	    public var _creditorArray: ArrayCollection;
	    public var _awardListArray: ArrayCollection;
	    private var _parentalGuidance:String;
	    private var _genreName:String;
	    private var _genreHref:String;
	    
	    private var _contentName:String;
	    private var _contentHref:String;
	    
	    private var _contentAlertName:String;
	    private var _contentAlertHref:String;
	    
	    private var _contentFormatName:String;
	    private var _contentFormatHref:String;

	    private var _atomesName:String;
	    private var _atomesHref:String;
	    
	    private var _origiName:String;
	    private var _origiHref:String;

	    private var _intendAudName:String;
	    private var _intendAudHref:String;

 		private var _intendName:String;
	    private var _intendHref:String;
	    
	    public var contentType:Array;
	    private var _memberOfIndex:int;

		public var intentionsArray:Array;
		public var contentArray:Array;
		public var contentTypeArray:Array;
		public var mediaTypeArray:Array;
		public var atmosphereArray:Array;
		public var formatArray:Array;
		public var intendedAudienceArray:Array;
		public var originationArray:Array;
		public var contentAlertArray:Array;
		private var _siGroupId:String;
		private var _siGroupTitle:String;
		private var _siGroupDesc:String;
		private var _segmentList:Array;
		
		public function Product() {
			
			_content = new Array(0);
			_mediaType =  new Array(0);
			_atmosphere = new Array(0);
			_format = new Array(0);
			_intendedAudience = new Array(0);
			_origination = new Array(0);
			_tags = new Array(0);
			_trailers = new Array(0);
			_intentions = new Array(0);
			_parentalGuidanceArray = new Array(0);
			_creditItems = new Array();
			_creditorArray = new ArrayCollection();
			_awardListArray = new ArrayCollection();
			_segmentList = new Array;
		}
		
		public function get origination():Array {
			return _origination;
		}
		
		public function set origination(origination:Array):void {
			_origination = origination;
		}
		
		public function get intendedAudience():Array {
			return _intendedAudience;
		}
		
		public function set intendedAudience(intendedAudience:Array):void {
			_intendedAudience = intendedAudience;
		}
		
		public function get content():Array {
			return _content;
		}
		
		public function set content(content:Array):void {
			_content = content;
		}
		
		public function get mediaType():Array {
			return _mediaType;
		}
		
		public function set mediaType(mediaType:Array):void {
			_mediaType = mediaType;
		}
		
		public function get atmosphere():Array {
			return _atmosphere;
		}
		
		public function set atmosphere(atmosphere:Array):void {
			_atmosphere = atmosphere;
		}
		
		public function get format():Array {
			return _format;
		}
		
		public function set format(format:Array):void {
			_format = format;
		}
		
		public function set officialURI(uri:String):void
		{
			_officialURI = uri;
		}
		
		public function get officialURI():String
		{
			return _officialURI;
		}
		
		public function set releaseDate(i:String):void
		{
			_releaseDate = i;
		}
		
		public function get releaseDate():String
		{
			return _releaseDate;
		}
		
		public function get parentalGuidance():String {
			return _parentalGuidance;
		}
		
		public function set parentalGuidance(value:String):void {
			_parentalGuidance = value;
		}

		public function get parentalGuidanceArray():Array {
			return _parentalGuidanceArray;
		}
		
		public function set parentalGuidanceArray(value:Array):void {
			_parentalGuidanceArray = value;
		}
			
		public function get intentions():Array {
			return _intentions;
		}
		
		public function set intentions(intentions:Array):void {
			_intentions = intentions;
		}
		
		public function get trailers():Array {
			return _trailers;
		}
		
		public function set trailers(trailers:Array):void {
			_trailers = trailers;
		}
		
		public function get creditItems():Array {
			return _creditItems;
		}
		
		public function set creditItems(creditItems:Array):void {
			_creditItems = creditItems;	
		}		
		
		public function get id():String {
			return _id;
		}
		
		public function set id( value:String ):void {
			_id = value;
		}
		
		public function set thumbnail(i:String):void
		{
			_thumbnail = i;
		}
		
		public function get thumbnail():String
		{
			return _thumbnail;
		}
		
		public function get title():String {
			return _title;
		}
		
		public function set title( value:String ):void {
			_title = value;
		}
		
		public function get subTitle():String {
			return _subTitle;
		}
		
		public function set subTitle(value:String ):void {
			_subTitle = _title;
		}
		
		public function get synopsis():String {
			return _synopsis;
		}
		
		public function set synopsis( value:String ):void {
			_synopsis = value;
		}
		
		public function get keyword():String {
			return _keyword;
		}
		
		public function set keyword( value:String ):void {
			_keyword = value;
		}
		
		public function get tags():Array {
			return _tags;
		}
		
		public function set tags( value:Array ):void {
			_tags = value;
		}
		
		public function get preview():String {
			return _preview;
		}
		
		public function set preview( value:String ):void {
			_preview = value;
		}
		
		public function get price():String {
			return _price;
		}
		
		public function set price(cost:String):void {
			//_price = "$" + cost;
			_price = cost;
		}
		
		public function get rating():Number {
			return _rating;
		}
		
		public function set rating(rating:Number):void {
			_rating = rating;
		}
		
		public function get thumbnailStream():Array {
			return _thumbnailStream;
		}
		
		public function set thumbnailStream(stream:Array):void {
			_thumbnailStream = stream;
		}
		
		public function get relatedMaterial():Array {
			return _relatedMaterial;
		}
		
		public function set relatedMaterial(rm:Array):void {
			_relatedMaterial = rm;
		}
		
		public function get language():String {
			return _language;
		}
		
		public function set language(value:String):void {
			_language = value;
		}
		
		public function get promoInfo():String {
			return _promoInfo;
		}
		
		public function set promoInfo(value:String):void {
			_promoInfo = value;
		}
		
		public function get copyRight():String {
			return _copyRight;
		}
		
		public function set copyRight(value:String):void {
			_copyRight = value;
		}
		
		public function get author():String {
			return _author;
		}
		
		public function set author(value:String):void {
			_author = value;
			
		}
		
		public function set creditorArray(value: ArrayCollection): void {
			_creditorArray = value;
		}
		
		public function get creditorArray(): ArrayCollection {
			return _creditorArray;
		}
		
		public function set awardListArray(value: ArrayCollection): void {
			_awardListArray = value;
		}
		
		public function get awardListArray(): ArrayCollection {
			return _awardListArray;
		}
		
		public function set genreName(value: String): void {
			_genreName = value;
		}
		
		public function get genreName(): String {
			return _genreName;
		}
		
		public function set genreHref(value: String): void {
			_genreHref = value;
		}
		
		public function get genreHref(): String {
			return _genreHref;
		}
		
		public function set contentName(value: String): void {
			_contentName = value;
		}
		
		public function get contentName(): String {
			return _contentName;
		}

		public function set contentHref(value: String): void {
			_contentHref = value;
		}
		
		public function get contentHref(): String {
			return _contentHref;
		}
		
		public function set contentAlertName(value: String): void {
			_contentAlertName = value;
		}
		
		public function get contentAlertName(): String {
			return _contentAlertName;
		}

		public function set contentAlertHref(value: String): void {
			_contentAlertHref = value;
		}
		
		public function get contentAlertHref(): String {
			return _contentAlertHref;
		}
	

		public function set contentFormatName(value: String): void {
			_contentFormatName = value;
		}
		
		public function get contentFormatName(): String {
			return _contentFormatName;
		}

		public function set contentFormatHref(value: String): void {
			_contentFormatHref = value;
		}
		
		public function get contentFormatHref(): String {
			return _contentFormatHref;
		}


		public function set atomesName(value: String): void {
			_atomesName = value;
		}
		
		public function get atomesName(): String {
			return _atomesName;
		}

		public function set atomesHref(value: String): void {
			_atomesHref = value;
		}
		
		public function get atomesHref(): String {
			return _atomesHref;
		}
	    
		public function set origiName(value: String): void {
			_origiName = value;
		}
		
		public function get origiName(): String {
			return _origiName;
		}

		public function set origiHref(value: String): void {
			_origiHref = value;
		}
		
		public function get origiHref(): String {
			return _origiHref;
		}
		
		public function set intendAudName(value: String): void {
			_intendAudName = value;
		}
		
		public function get intendAudName(): String {
			return _intendAudName;
		}

		public function set intendAudHref(value: String): void {
			_intendAudHref = value;
		}
		
		public function get intendAudHref(): String {
			return _intendAudHref;
		}
		
		public function set intendName(value: String): void {
			_intendName = value;
		}
		
		public function get intendName(): String {
			return _intendName;
		}

		public function set intendHref(value: String): void {
			_intendHref = value;
		}
		
		public function get intendHref(): String {
			return _intendHref;
		}
		
		public function set memberOfIndex(value: int): void {
			_memberOfIndex = value;
		}
		
		public function get memberOfIndex(): int {
			return _memberOfIndex;
		}
		
		public function set siGroupId(value: String): void {
			_siGroupId = value;
		}
		
		public function get siGroupId(): String {
			return _siGroupId;
		}
		
		public function get siGroupTitle(): String {
			return _siGroupTitle;
		}

		public function set siGroupTitle(value: String): void {
			_siGroupTitle = value;
		}
		
		public function get siGroupDesc(): String {
			return _siGroupDesc;
		}

		public function set siGroupDesc(value: String): void {
			_siGroupDesc = value;
		}
		
		public function get segmentList(): Array {
			return _segmentList;
		}

		public function set segmentList(value: Array): void {
			_segmentList = value;
		}
	}
}